package com.situ.day5;

public class Teacher extends Person{
    private double salary;

    public void teach() {
        System.out.println("Teacher.teach");
    }

    @Override
    public String toString() {
        return "Teacher{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", gender='" + gender + '\'' +
                ", salary=" + salary +
                '}';
    }
}
